
type Method = 'GET' | 'POST'
function request(url: string, method: Method) { }

const options = {
    url: "https://www.yzh.org/home",
    method: 'POST'
} as const

request(options.url, options.method)
